#ifndef MYUTIL_H
#define MYUTIL_H

extern bool bRunning;

#include <windows.h>

#include <cstdio>
//#define CONSOLE_TEST
namespace myUtil{
    void myCreateThread(LPTHREAD_START_ROUTINE WorkThread, PVOID lpParameter = NULL);
    int testoutput(char *fmt, ...);
    int WSAInit();
    int WSAUnint();
    int Sended(SOCKET sNow,char * buf,int nLeft);
    int Recved(SOCKET sNow,char * buf,int nLeft);
    void getScreenWH(int &width, int &height);
    int midCursor(int x, int y);
    unsigned int transVK(unsigned int wParam);
}
#endif